package com.springai.entity.query;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.RequiredArgsConstructor;
import org.springframework.ai.tool.annotation.ToolParam;
import org.springframework.boot.autoconfigure.data.web.SpringDataWebProperties;

import java.util.List;

@Data
@NoArgsConstructor
public class CourseQuery {
 @ToolParam(required = false,description = "课程类型：可选值为'必修','选修'")
 private String type;
 @ToolParam(required = false, description = " 学历要求： 0⽆、 1 初中、 2⾼中、 3⼤专、 4 本科及本科以上 ")
 private Integer edu;
 @ToolParam(required = false, description = " 排序⽅式 ")
 private List<Sort> sorts;



 @Data
 public static class Sort {
  @ToolParam(required = false, description = " 排序字段 : price 或 duration")
  private String field;
  @ToolParam(required = false, description = " 是否是升序 : true/false")
  private Boolean asc;
 }

}